package com.finance.cooperate.dao.entity.secondary;

import com.finance.cooperate.dao.support.pojo.BaseAutomaticVO;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

/**
 * @ClassName ModelInfo
 * @Description 模型表
 * @Author shen
 * @Date 2023/8/6 21:44
 * @Modify ...
 */
@Entity
@Table(name = "rc_model_info")
@Data
public class ModelInfo extends BaseAutomaticVO {

    private static final long serialVersionUID = -1349428705276539395L;

    //是否打开, 0关闭, 1打开
    @Column(name = "status")
    private Integer status;

    // 模型名称
    @Column(name = "name")
    private String name;

    // 模型权重
    @Column(name = "weight")
    private Double weight;

    // 分流器ID
    @Column(name = "diversion_id")
    private Long diversionId;

    // 模型文件
    @Column(name = "file")
    private String file;

    // 阈值划分，目前只有一个值，小于就通过
    @Lob
    @Column(name = "threshold", columnDefinition = "TEXT")
    private String threshold;

}
